Non-grabbing popups are not limited to a single
nesting stack, as per the spec, so we should not
prevent that on the client-side.
g_warning ("Can't map popup, already mapped");
return;
}
- if ((display->current_popups &&
- g_list_last (display->current_popups)->data != parent) ||
- (!display->current_popups &&
- !is_realized_toplevel (parent)))
+ if (grab_input_seat &&
+ ((display->current_popups &&
+ g_list_last (display->current_popups)->data != parent) ||
+ (!display->current_popups &&
+ !is_realized_toplevel (parent))))
{
g_warning ("Tried to map a popup with a non-top most parent");
return;